package com.yys.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yys.common.to.user.RegistUserTo;
import com.yys.common.utils.PageUtils;
import com.yys.gulimall.member.entity.MemberEntity;
import com.yys.gulimall.member.exception.PhoneExistException;
import com.yys.gulimall.member.exception.UsernameExistException;
import com.yys.gulimall.member.vo.MemberLoginVo;
import com.yys.gulimall.member.vo.SocialUser;
import org.omg.CORBA.UserException;

import java.util.Map;

/**
 * 会员
 *
 * @author zqcc
 * @email zhang32194878@163.com
 * @date 2021-02-21 02:36:56
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistUserTo registUserTo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(SocialUser socialUser);
}

